﻿using de.wolfmarco.pas.Shared.MessageBoxes;
using Microsoft.Practices.Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace de.wolfmarco.pas.Client
{
    /// <summary>
    /// Interaktionslogik für "App.xaml"
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            try
            {
                ClientBootstrapper bootstrapper = new ClientBootstrapper();
                bootstrapper.Run();
            }
            catch(ModuleInitializeException ex)
            {
                PASMessageBox.ShowException( ex );
                PASMessageBox.ShowException( ex.GetBaseException() );
            }
            catch(Exception ex)
            {
                PASMessageBox.ShowException(ex);
            }
        }
    }
}
